from django.conf.urls.defaults import *

from django.contrib import databrowse
from berlin.metadata.models import *
from berlin.data.models import *

#databrowse.site.register(PersonType)
#databrowse.site.register([GroupType, GroupAttribute, Group, GroupParameter])
#databrowse.site.register([EventType, EventAttribute, Event, EventParameter])

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^berlin/', include('berlin.foo.urls')),
    # (r'^berlin/metadata/', include('berlin.metadata.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^databrowse/(.*)', databrowse.site.root),
    (r'^', include('berlin.main.urls')),
)
